while True:
	print("\nPlease Enter Q to Quit any time.")
	name = input("Please Enter name: ")
	if name == 'q':
		break
	else:
		print(f"Hello {name}")
		with open("guest_book.txt", 'a') as file:
			file.write(f"{name}\n")